package com.baidu.location;

import android.location.Location;
import android.location.LocationListener;
import android.os.Bundle;

final class p
  implements LocationListener
{
  public final void onLocationChanged(Location paramLocation)
  {
    n.a(this.a, paramLocation);
    n.a(this.a, false);
    if (!(n.a(this.a)))
      return;
    n.b(this.a, true);
  }

  public final void onProviderDisabled(String paramString)
  {
    n.a(this.a, null);
    n.b(this.a, false);
  }

  public final void onProviderEnabled(String paramString)
  {
  }

  public final void onStatusChanged(String paramString, int paramInt, Bundle paramBundle)
  {
    switch (paramInt)
    {
    default:
      return;
    case 0:
      n.a(this.a, null);
      n.b(this.a, false);
      return;
    case 1:
      n.a(this.a, System.currentTimeMillis());
      n.a(this.a, true);
      n.b(this.a, false);
      return;
    case 2:
    }
    n.a(this.a, false);
  }
}